package com.miao.websecurity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * Api资源表(SysApi)表实体类
 *
 * @author MiaoWenqing
 * @since 2021-01-31 13:20:28
 */
@SuppressWarnings("serial")
public class SysApi extends Model<SysApi> {
    //系统api id
    @TableId(type = IdType.ASSIGN_ID)
    private String apiId;
    //api名字
    private String apiName;
    //api路径
    private String apiUri;
    //功能描述
    private String apiDes;


    public String getApiId() {
        return apiId;
    }

    public void setApiId(String apiId) {
        this.apiId = apiId;
    }

    public String getApiName() {
        return apiName;
    }

    public void setApiName(String apiName) {
        this.apiName = apiName;
    }

    public String getApiUri() {
        return apiUri;
    }

    public void setApiUri(String apiUri) {
        this.apiUri = apiUri;
    }

    public String getApiDes() {
        return apiDes;
    }

    public void setApiDes(String apiDes) {
        this.apiDes = apiDes;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.apiId;
    }
}